//center.js
//获取应用实例
const app = getApp()

Page({
  data: {
    userInfo: app.globalData.userInfo,
  },
  onShow() {
    this.setData({
      userInfo: app.globalData.userInfo
    })
  },
   //事件处理函数
  bindViewTap: function () {
    wx.switchTab({
      url: '../index/index',
      success: function (res) {
        console.log(res)
      },
      fail: function (res) {
        console.log(res)
      }
    })
  },

})
